<%--
 *  File:    ApprovalZylProcessGoalsDetail.jsp
 *  @Author: jackwang 
 *  Date:    2012/11/15
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval. 
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>
<%
  	Category cat = Category.getInstance("jsp.ApprovalZylProcessGoalsDetail"); 
%>

<% //--------------------------------------  variant and initialization --%>
<%
    String strModuleName = "PCM";
  	String strTableName = "";
  	String privilegeCode = "11601,A011007,A011008,A011009";
  	String contextPath = request.getContextPath();
%>



<%
  	HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");

String strFromuserid = (CurUserInfo.get("userid")).toString();
%>

<% //--------------------------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<%@ include file="/rpt/ReportURL.inc"%>


<html>
<head>
<title>ApprovalZylProcessGoalsDetail</title>
<PageFlow:CheckPageFlow pageName="approvalfailtempdetail"/>
<% //--------------------------------------  output variant from pageflow --%>
<%

  	Vector userGroupSummary = (Vector)pageContext.getAttribute("ugsummary");
  	if(userGroupSummary == null)
  	{
    	userGroupSummary = new Vector();
  	}
  	
    HashMap UserInfo = (HashMap)session.getAttribute("userinfo");
    if(UserInfo == null) UserInfo = new HashMap();
    HashMap goalshash = (HashMap)pageContext.getAttribute("goalshash");
    if(goalshash == null) goalshash = new HashMap();
    Integer quarter=new Integer(-1);
	if(goalshash.get("quarterofyear") != null){
	  quarter = (Integer)goalshash.get("quarterofyear");
	}
  	String subjectcode = (String)pageContext.getAttribute("subjectcode");
  	
	
%>

<%@ include file="/inc/InitEdit.inc" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/boxover.js"></script>
<script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script type="text/javascript" src="<%=contextPath%>/js/opal2/mootools.js"></script>
<%@ include file="/inc/SummaryDivision.inc" %>
<script>

function page_summary(actionvalue,orderbyname)
{
  var editform = summaryPrepare(usergroupsummaryform,actionvalue,orderbyname);
  editform.action = "ApprovalZylProcessGoalsDetail.jsp?<%= OvalTools.randomURL() %>";
  editform.target = "_self";
  isRunning = true;
  editform.submit();  
}


function allcheckselect(){
	var allcheck = usergroupsummaryform.allcheck.checked;
	var alldatafile = document.getElementsByName('batchnoidstr');
	var length = alldatafile.length;
	if(allcheck){
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = true;
		}
	}else{
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = false;
		}	
	}
}


function editMode(obj,index,name,id) {
    if ($(name + index) == null) {
        var c = Trim(obj.innerText);
        var t = new Element('input', {
            'type':'text',
            'value':c,
            'styles':{
                    'width':'500px'
                     },
            'id':name + index,
            'name':name,
            'events':{
                'blur':function() {
                    saveData(this,id,c);
                },
                'keydown':function() {
                    if (event.keyCode == 13) {
                        saveData(this,id,c);
                    }
                }
            }
        });
       
        obj.innerHTML = '&nbsp;';
        t.inject(obj);
        selectText(t);
    }
}

function saveData(obj,id,c) {
    var p = obj.parentNode;
    var fromusrid= document.usergroupsummaryform.fromuserid.value ;
    var subjectcode = document.usergroupsummaryform.subjectcode.value ;
    var begindate = document.usergroupsummaryform.begindate.value ;
    p.innerHTML = obj.value;
    var req = new Request({
        'url':'<%=contextPath%>/Dispatcher',
        'method':'get',
        'data':'pagename=approvalfailtempdetail&actionname=save&columnname=' + obj.name + '&columnvalue='+ encodeURI(obj.value) + '&transactionid=' + id+'&transactioncode=' + id +'&fromuserid='+fromusrid+ '&subjectcode='+subjectcode+'&begindate='+begindate
    });
    req.send(); 
    window.location.reload();
}

//选中文本框中的字符




function selectText(obj) {
    var range = obj.createTextRange();
    range.moveStart("character", 0);
    range.select();
}
    
function setValue()
{
   var frm = document.usergroupsummaryform;
   frm.nt1.value = frm.nt0.value;
   frm.nc1.value = frm.nc0.value;
}
function page_back(){

	var subjectcode =document.usergroupsummaryform.subjectcode.value;
	self.location.href ="ApprovalFailSummary.jsp?<%= OvalTools.randomURL() %>"+"&subjectcode="+subjectcode;
}
function page_approval()
{
  var frm = document.usergroupsummaryform;

  frm.pagename.value = "approvalfailsummary";
  frm.actionname.value = "approve";
  frm.target = "_parent";
  isRunning = true;
  frm.submit();

}


function page_upload(){
	this.location.href = "<%= contextPath%>/zylprocessgoals/UploadOrgstdprocessgoals.jsp?&<%= OvalTools.randomURL() %>&subjectcode="+document.usergroupsummaryform.subjectcode.value+"&quarter="+<%=quarter%>+"&batchno="+document.usergroupsummaryform.batchno.value;
}

function page_download() {
    var batchno=document.usergroupsummaryform.batchno.value;
    var employeeid=document.usergroupsummaryform.userid.value;
    <% if (subjectcode.equals("817")){  %>
	var url = "<%=reportURL%>/servlet/ExcecuteReport/modify_orgstdprocessgoals1.sox?__format=xlsx&__folder=/ovalreport";
	<%}%>
	<% if (subjectcode.equals("818")){  %>
	var url = "<%=reportURL%>/servlet/ExcecuteReport/modify_orgstdprocessgoals2.sox?__format=xlsx&__folder=/ovalreport";
	<%}%>
	<% if (subjectcode.equals("819")){  %>
	var url = "<%=reportURL%>/servlet/ExcecuteReport/modify_orgstdprocessgoals3.sox?__format=xlsx&__folder=/ovalreport";
	<%}%>
	url=url+"&employeeid="+employeeid+"&batchno="+batchno+"&quarter="+<%=quarter%>;
	var strstatus="height=768, width=1024,top=0,left=0,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no";
	popwindow = window.open(url, "n1window", strstatus);
	                
}



function page_done(a_str){ 
	
 var approvalnoteseditform= document.usergroupsummaryform;
 if(isNullChecked(approvalnoteseditform.batchnoidstr))
    {
        alert("<%= message.getMessageDesc("PLEASE_SELECT") %>");
        return;
    }
 
 var alldatafile = document.getElementsByName('batchnoidstr');
 var length = alldatafile.length;
 for(var i = 0 ; i < length;i++){
  if (alldatafile[i].checked){
  
	var objstatus=eval('usergroupsummaryform.status'+i);
	
	 if ( objstatus.value!=20){
        alert("<%=message.getMessageDesc("J_STATUS_CHECK_ERROR")%>");
      return;
  }
  }
 }

 if(a_str=="agree")
    {
      if (isAllSpace(approvalnoteseditform.nt0.value)){
     
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Agree",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Agree",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
    	approvalnoteseditform.actionname.value = "approvepassed";
    }else if(a_str=="deny"){
   
      if (isAllSpace(approvalnoteseditform.nt0.value)){
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Refuse",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_Refuse",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
        approvalnoteseditform.actionname.value = "approvedenied";
    }
    else if(a_str=="disagree"){
   
      if (isAllSpace(approvalnoteseditform.nt0.value)){
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_NotAgree",false)%>";
      }else{
        approvalnoteseditform.nt0.value = "<%= label.getLabelName("L_NotAgree",false) + label.getLabelName("L_Colon")%>"+approvalnoteseditform.nt0.value;
      }
        approvalnoteseditform.actionname.value = "approvepassed";
        
    }
   
    setValue();
   
    approvalnoteseditform.pagename.value="approvalnotesedit";
    approvalnoteseditform.target = "_self";
    isRunning = true;
    approvalnoteseditform.submit();
}



</script>

<%
String strLanguageCode0;
  String strLanguageCode1;
  if(strLanguageCode.equalsIgnoreCase("cn"))
  {
	strLanguageCode0 = "cn";
	strLanguageCode1 = "en";
  }else{
	strLanguageCode0 = "en";
	strLanguageCode1 = "cn";    
  }%>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

	<% //--------------------------------------  hidden form variant --%>
	<form name="usergroupsummaryform" method="post" action="../../Dispatcher"  target="_parent">
    <input type="hidden" name="pagename" value="approvalfailtempdetail">
    <input type="hidden" name="actionname">
    <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">
    <custom:hidden property="batchno"/>
    <input type="hidden" name="subjectcode" value="<%=subjectcode %>"/>

    <input type="hidden" name="fromuserid" value="<%=JspHelper.filterNull( strFromuserid)%>">
    <input type="hidden" name="begindate" value="<%=JspHelper.filterNull( new java.sql.Date(new java.util.Date().getTime()) )%>">
    <input type="hidden" name="languagecode0" value="<%= strLanguageCode0 %>">
    <input type="hidden" name="languagecode1" value="<%= strLanguageCode1 %>">
    
    <input type="hidden" name="nt0">
    <input type="hidden" name="nt1">
    <input type="hidden" name="nc1">
    <input type="hidden" name="nc0">
    <input type="hidden" name="numrows" value="2">
    
    <custom:hidden scope="session" name="userinfo" property="userid"></custom:hidden> 
    
	<% //--------------------------------------  page location --%>
	<%@ include file="/inc/PageLocation.inc" %>
	
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
  	<tr> 
    	<td valign="top"> 
    		<table width="100%" border="0" cellspacing="0">
          	<tr><td class="summary_top" ></td></tr>
        	</table>
        </td>
   	</tr>
   	</table>
<div style="overflow:auto;width:1230;height:300">   
 	   <% if (subjectcode.equals("817")){  %>
 	   <table width="2200"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	  <tr class="deepblue-left">
              <td class="title_center"   width="1%" rowspan="3">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_ApprovalStatus") %> </td>	
              <!-- 
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_Approve") %> </td>
               -->		  
              <td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Provicetdr") %></td>
			  <td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Department") %></td>
			  <td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_RegionOffice") %></td>
			  <td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_Variety") %></td>
			  <td class="title_center"  width="5%" rowspan="3"><%= label.getLabelName("L_QuarterlyIndicators") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_LockHospitalNumber") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_DevelopedHospitalNum") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_UndevelopedHospitalNum")%></td>
			  <td class="title_center"  width="15%" colspan="9"><%= label.getLabelName("L_Number")%><%=quarter%><%= label.getLabelName("L_Quarter")%></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_Sum") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_ModifiedCombined") %></td>
	     </tr>
	     <tr class="deepblue-left">
        	<td class="title_center" rowspan="2"><%= "三甲" %></td>
        	<td class="title_center" rowspan="2"><%= "二甲" %></td>
        	<td class="title_center" rowspan="2"><%= "一甲" %></td>
        	<td class="title_center" rowspan="2"><%= "三甲" %></td>
        	<td class="title_center" rowspan="2"><%= "二甲" %></td>
       	    <td class="title_center" rowspan="2"><%= "一甲" %></td>
        	<td class="title_center" rowspan="2"><%= "三甲" %></td>
        	<td class="title_center" rowspan="2"><%= "二甲" %></td>
        	<td class="title_center" rowspan="2"><%= "一甲" %></td>
				<%
				  if(quarter.intValue()==1){
				%>
				<td class="title_center" colspan="3" >1<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >2<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >3<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==2){
				%>
				<td class="title_center" colspan="3" >4<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >5<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >6<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==3){
				%>
				<td class="title_center" colspan="3" >7<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >8<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >9<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==4){
				%>
				<td class="title_center" colspan="3" >10<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >11<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >12<%=label.getLabelName("L_Month")%></td>
				<%} %>
			<td class="title_center" rowspan="2" ><%= "三甲" %></td>
			<td class="title_center" rowspan="2" ><%= "二甲" %></td>
			<td class="title_center" rowspan="2" ><%= "一甲" %></td>
			<td class="title_center" rowspan="2" ><%= "三甲" %></td>
			<td class="title_center" rowspan="2" ><%= "二甲" %></td>
			<td class="title_center" rowspan="2" ><%= "一甲" %></td>
		</tr>	
		<tr class="deepblue-left">
			    <td class="title_center"  ><%= "三甲" %></td>
				<td class="title_center"  ><%= "二甲" %></td>
				<td class="title_center"  ><%= "一甲" %></td>
				<td class="title_center"  ><%= "三甲" %></td>
				<td class="title_center"  ><%= "二甲" %></td>
				<td class="title_center"  ><%= "一甲" %></td>
				<td class="title_center"  ><%= "三甲" %></td>
				<td class="title_center"  ><%= "二甲" %></td>
				<td class="title_center"  ><%= "一甲" %></td>
		</tr>	  
 	  <% } %>  

<% if (subjectcode.equalsIgnoreCase("818")){  %>
 	<table width="3200"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
 	  	  <tr class="deepblue-left">
              <td class="title_center"   width="1%" rowspan="3">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_ApprovalStatus") %> </td>
              <!-- 
              <td class="title_center"   width="2%" rowspan="2"><%= label.getLabelName("L_Approve") %> </td>
               -->			  
				<td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Provicetdr") %></td>
				<td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Department") %></td>
				<td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_RegionOffice") %></td>
				<td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_YesOrNoBale") %></td>
				<td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_Variety") %></td>
				<td class="title_center"  width="5%" rowspan="3"><%= label.getLabelName("L_QuarterlyIndicators") %></td>
				<td class="title_center"  width="5%" colspan="5" ><%= label.getLabelName("L_LockHospitalNumber") %></td>
				<td class="title_center"  width="5%" colspan="5" ><%= label.getLabelName("L_DevelopedHospitalNum") %></td>
				<td class="title_center"  width="5%" colspan="5" ><%= label.getLabelName("L_UndevelopedHospitalNum")%></td>
				<td class="title_center"  width="15%" colspan="15"><%= label.getLabelName("L_Number")%><%=quarter%><%= label.getLabelName("L_Quarter")%></td>
				<td class="title_center"  width="5%" colspan="5" ><%= label.getLabelName("L_Sum") %></td>
				<td class="title_center"  width="5%" colspan="5" ><%= label.getLabelName("L_ModifiedCombined") %></td>
	     </tr>
	     <tr class="deepblue-left">
             <td class="title_center" rowspan="2"><%= "社区卫生服务中心" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务站" %></td>
				<td class="title_center" rowspan="2"><%= "厂矿职工高校医院" %></td>
				<td class="title_center" rowspan="2"><%= "城市综合一甲及以上" %></td>
				<td class="title_center" rowspan="2"><%= "私营终端" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务中心" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务站" %></td>
				<td class="title_center" rowspan="2"><%= "厂矿职工高校医院" %></td>
				<td class="title_center" rowspan="2"><%= "城市综合一甲及以上" %></td>
				<td class="title_center" rowspan="2"><%= "私营终端" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务中心" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务站" %></td>
				<td class="title_center" rowspan="2"><%= "厂矿职工高校医院" %></td>
				<td class="title_center" rowspan="2"><%= "城市综合一甲及以上" %></td>
				<td class="title_center" rowspan="2"><%= "私营终端" %></td>
				<%
				  if(quarter.intValue()==1){
				%>
				<td class="title_center" colspan="5" rowspan="1">1<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" rowspan="1">2<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" rowspan="1">3<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==2){
				%>
				<td class="title_center" colspan="5" >4<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >5<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >6<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==3){
				%>
				<td class="title_center" colspan="5" >7<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >8<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >9<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==4){
				%>
				<td class="title_center" colspan="5" >10<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >11<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="5" >12<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<td class="title_center" rowspan="2"><%= "社区卫生服务中心" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务站" %></td>
				<td class="title_center" rowspan="2"><%= "厂矿职工高校医院" %></td>
				<td class="title_center" rowspan="2"><%= "城市综合一甲及以上" %></td>
				<td class="title_center" rowspan="2"><%= "私营终端" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务中心" %></td>
				<td class="title_center" rowspan="2"><%= "社区卫生服务站" %></td>
				<td class="title_center" rowspan="2"><%= "厂矿职工高校医院" %></td>
				<td class="title_center" rowspan="2"><%= "城市综合一甲及以上" %></td>
				<td class="title_center" rowspan="2"><%= "私营终端" %></td>
		 </tr>
       	 <tr class="deepblue-left">
			    <td class="title_center" ><%= "社区卫生服务中心" %></td>
				<td class="title_center" ><%= "社区卫生服务站" %></td>
				<td class="title_center" ><%= "厂矿职工高校医院" %></td>
				<td class="title_center" ><%= "城市综合一甲及以上" %></td>
				<td class="title_center" ><%= "私营终端" %></td>
				<td class="title_center" ><%= "社区卫生服务中心" %></td>
				<td class="title_center" ><%= "社区卫生服务站" %></td>
				<td class="title_center" ><%= "厂矿职工高校医院" %></td>
				<td class="title_center" ><%= "城市综合一甲及以上" %></td>
				<td class="title_center" ><%= "私营终端" %></td>
				<td class="title_center" ><%= "社区卫生服务中心" %></td>
				<td class="title_center" ><%= "社区卫生服务站" %></td>
				<td class="title_center" ><%= "厂矿职工高校医院" %></td>
				<td class="title_center" ><%= "城市综合一甲及以上" %></td>
				<td class="title_center" ><%= "私营终端" %></td>
		</tr>        
       <% }%>
 	   <% if (subjectcode.equals("819")){  %>
 	   <table width="2000"  border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center"> 
 	      <tr class="deepblue-left">
              <td class="title_center"   width="1%" rowspan="3">&nbsp;<input type="checkbox" name="allcheck" class="normalradio" onclick="allcheckselect();"></td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_SlipCode") %> </td>
              <td class="title_center"   width="2%" rowspan="3"><%= label.getLabelName("L_ApprovalStatus") %> </td>
              <td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Provicetdr") %></td>
			  <td class="title_center"  width="2%" rowspan="3"><%= label.getLabelName("L_Department") %></td>
			  <td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_RegionOffice") %></td>
			  <td class="title_center"  width="4%" rowspan="3"><%= label.getLabelName("L_Variety") %></td>
			  <td class="title_center"  width="5%" rowspan="3"><%= label.getLabelName("L_QuarterlyIndicators") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_LockHospitalNumber1") %></td>
		      <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_DevelopedHospitalNum1") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_UndevelopedHospitalNum1")%></td>
			  <td class="title_center"  width="15%" colspan="9"><%= label.getLabelName("L_Number")%><%=quarter%><%= label.getLabelName("L_Quarter")%></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_Sum") %></td>
			  <td class="title_center"  width="5%" colspan="3" ><%= label.getLabelName("L_ModifiedCombined") %></td>
          </tr>
          <tr class="deepblue-left">
				<td class="title_center" rowspan="2"><%= "A级" %></td>
				<td class="title_center" rowspan="2"><%= "B级" %></td>
				<td class="title_center" rowspan="2"><%= "C级" %></td>
				<td class="title_center" rowspan="2"><%= "A级" %></td>
				<td class="title_center" rowspan="2"><%= "B级" %></td>
				<td class="title_center" rowspan="2"><%= "C级" %></td>
				<td class="title_center" rowspan="2"><%= "A级" %></td>
				<td class="title_center" rowspan="2"><%= "B级" %></td>
				<td class="title_center" rowspan="2"><%= "C级" %></td>
				<%
				  if(quarter.intValue()==1){
				%>
				<td class="title_center" colspan="3" rowspan="1">1<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" rowspan="1">2<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" rowspan="1">3<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==2){
				%>
				<td class="title_center" colspan="3" >4<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >5<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >6<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==3){
				%>
				<td class="title_center" colspan="3" >7<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >8<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >9<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<%
				  if(quarter.intValue()==3){
				%>
				<td class="title_center" colspan="3" >10<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >11<%=label.getLabelName("L_Month") %></td>
				<td class="title_center" colspan="3" >12<%=label.getLabelName("L_Month")%></td>
				<%} %>
				<td class="title_center" rowspan="2" ><%= "A级" %></td>
				<td class="title_center" rowspan="2" ><%= "B级" %></td>
				<td class="title_center" rowspan="2" ><%= "C级" %></td>
				<td class="title_center" rowspan="2" ><%= "A级" %></td>
				<td class="title_center" rowspan="2" ><%= "B级" %></td>
				<td class="title_center" rowspan="2" ><%= "C级" %></td>
			</tr>
			<tr class="deepblue-left">
			    <td class="title_center"  ><%= "A级" %></td>
				<td class="title_center"  ><%= "B级" %></td>
				<td class="title_center"  ><%= "C级" %></td>
				<td class="title_center"  ><%= "A级" %></td>
				<td class="title_center"  ><%= "B级" %></td>
				<td class="title_center"  ><%= "C级" %></td>
				<td class="title_center"  ><%= "A级" %></td>
				<td class="title_center"  ><%= "B级" %></td>
				<td class="title_center"  ><%= "C级" %></td>
			</tr>
       <% }%>

	

 
 	 
			
	<% //--------------------------------------  default value definition --%>
    <%
    	int i=0;
        Integer nDefaultzyldealerapproveid = new Integer(-1);               
        String strClassType = new String(); 
        boolean bHasChecked = false;
        String strDefaultIsDisabled="";
      
   	%>
   	
    <% //--------------------------------------  loop results --%>
     <span id="olddetail" >
    <logic:iterate id="usergroup" collection="<%= userGroupSummary %>" indexId="idx" scope="page">                      
    	
    <%
    	HashMap userGroupMap = (HashMap)pageContext.getAttribute("usergroup"); 
        String strIsDisabled = "";
        String strIsChecked = "";
            
        if(i%2==0){
            strClassType="td-listrom";
        } else{
            strClassType="none";
        } 
       if(!bHasChecked)
        {
	        strIsChecked = "Checked";                       
            bHasChecked = true;
          	strDefaultIsDisabled = strIsDisabled;            
        }  
       i++;
  	%>
    
    <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull( strClassType )%>'" class="<%=JspHelper.filterNull( strClassType )%>">
 <%  if (subjectcode.equals("817")){  %>
              <td class="title_center">
              <custom:checkbox property="zylorgstdgoalsapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylorgstdgoalsapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
              <!-- 
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&transactioncode=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&subjectcode=<%=subjectcode%>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
               -->
              <td><custom:write property="area1name" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="deptname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area2name" name="usergroup"  nbsp="true"/></td>
              <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <td><custom:write property="productgroupname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="quarteramount" name="usergroup"  nbsp="true"/></td>
              <td><custom:write name="usergroup" property="all1amount" nbsp="true"/></td>
              <td><custom:write name="usergroup" property="all2amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="all3amount" nbsp="true"/></td>
              <td><custom:write name="usergroup" property="developed1amount" nbsp="true"/></td>
              <td><custom:write name="usergroup" property="developed2amount" nbsp="true"/></td>
              <td><custom:write name="usergroup" property="developed3amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="udeveloped1amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="udeveloped2amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="udeveloped3amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount1" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount2" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount3" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount4" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount5" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount6" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount7" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount8" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="amount9" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="total1amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="total2amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="total3amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="modify1amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="modify2amount" nbsp="true"/></td>
			  <td><custom:write name="usergroup" property="modify3amount" nbsp="true"/></td>
              
      <% } %>

<% if (subjectcode.equals("818")){  %>
              <td class="title_center">
              <custom:checkbox property="zylorgstdgoalsapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylorgstdgoalsapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
              <!-- 
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&transactioncode=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&subjectcode=<%=subjectcode%>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
               -->
              <td><custom:write property="area1name" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="deptname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area2name" name="usergroup"  nbsp="true"/></td>
              <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <td><custom:write property="isbale" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="productgroupname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="quarteramount" name="usergroup"  nbsp="true"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all4amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all5amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed4amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed5amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped4amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped5amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount1"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount2"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount3"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount4"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount5"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount6"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount7"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount8"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount9"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount10"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount11"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount12"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount13"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount14"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount15"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total4amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total5amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify4amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify5amount"/></td>
        <%}  %>
                           
       <% if (subjectcode.equals("819")){  %>
              <td class="title_center">
              <custom:checkbox property="zylorgstdgoalsapproveid" name="usergroup" changedName="batchnoidstr" styleClass="normalradio" />
              </td>
              <td><custom:write property="zylorgstdgoalsapproveid" name="usergroup"  nbsp="true" /></td>
              <td><custom:write property="approvename" name="usergroup"  nbsp="true"/></td>
              <!-- 
              <td><a href="../../biee/ApprovalNotesFrm.jsp?<%= OvalTools.randomURL() %>&transactionid=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&transactioncode=<custom:write name="usergroup" property="zyltagdoctorapproveid"/>&subjectcode=<%=subjectcode%>">
              <%= label.getLabelName("L_Approve") %>
              </a></td>
               -->
              <td><custom:write property="area1name" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="deptname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="area2name" name="usergroup"  nbsp="true"/></td>
              <custom:hidden property="basestatus" changedName="status" name="usergroup" colIndex="<%=idx %>" />
              <td><custom:write property="productgroupname" name="usergroup"  nbsp="true"/></td>
              <td><custom:write property="quarteramount" name="usergroup"  nbsp="true"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="all3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="developed3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="udeveloped3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount1"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount2"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount3"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount4"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount5"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount6"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount7"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount8"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="amount9"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="total3amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify1amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify2amount"/></td>
              <td>&nbsp;<custom:write name="usergroup" property="modify3amount"/></td>
        <%}  %>                    
	</tr>

            
    </logic:iterate>  
    

    
</span>
<!--		<tr> -->
	<!--			<td colspan="66" align="left"><%= label.getLabelName("L_TotalData") + label.getLabelName("L_Colon") %><custom:write property="count" name="count" nbsp="true"/></td> -->
	<!--		</tr> -->
            <%@ include file="/inc/SummaryActionUP.inc" %>

          </table>
    
 </div>   
    <% //--------------------------------------  page operation button --%>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr> 
        	<td class="summary_top" ></td>
        </tr>
        <tr> 
        	<td class="td_center"> 
        	<% if (subjectcode.equals("817") || subjectcode.equals("818") || subjectcode.equals("819")){ %>
<!--        	<a onclick="javascript:page_approval()" ><custom:button type="1" label="L_Check" imgsrc="save.gif" border="0" style="width:60"   /></a>
        		<a onclick="page_done('agree')"><custom:button type="1" label="L_Agree" imgsrc="new.gif" border="0" style="width:60"/></a>
        		<a onclick="page_done('disagree')"><custom:button type="1" label="L_NotAgree" imgsrc="edit.gif" border="0" style="width:60"/></a>
        		<a onclick="page_done('deny')"><custom:button type="1" label="L_Deny" imgsrc="delete.gif" border="0" style="width:60"/></a>
-->
				<a onclick="page_done('agree')"><custom:button type="1" label="L_Approvel" imgsrc="new.gif" border="0" style="width:60"/></a>
        		<a onclick="page_upload()"><custom:button type="1" label="L_Upload" imgsrc="delete.gif" border="0" style="width:60"/></a>
        		<a onclick="page_download()"><custom:button type="1" label="L_Download" imgsrc="delete.gif" border="0" style="width:60"/></a>  
        		<%} %>
        		<a onclick="page_back();"><custom:button type="1" label="L_Back" imgsrc="back.gif" border="0" style="width:60"/></a>      		
        	</td>
        </tr>
  	</table>

</form>

</body>
</html>


